package com.discovery.dto;

import lombok.Getter;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import java.util.List;

/**
 * @Author xuebinlu
 * @Date 2018/5/16 9:33
 * @Version 1.0
 * @Description  XML 数据类 用来xml文本和java对象之间的转化
 **/
@XmlRootElement(name = "discoverGruop")
public class DiscoverGroup {
    @Getter
    private String name;//小组名称

    @Getter
    private List<Discoverer> discoverers;

    @XmlAttribute
    public void setName(String name) {
        this.name = name;
    }

    @XmlElement(name = "discoverer")
    public void setDiscoverers(List<Discoverer> discoverers) {
        this.discoverers = discoverers;
    }
}
